<?php
namespace app\index\controller;

use app\Basic;
use think\facade\Db;
use think\facade\View;

class Article extends Basic
{
    /**
     * Notes:文章详情
     * User: Alan
     * DateTime: 2023/1/3 15:45
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function detail(){
        $detail = Db::name('article')->where('article_id',$this->param['article_id'])->find();
        return $this->success('请求成功',[
            'detail'=>$detail,
        ]);
    }
}
